package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tmeone.erpone.entity.TIomWarehouse;
import com.tmeone.erpone.mapper.TIomWarehouseMapper;
import com.tmeone.erpone.service.ITIomWarehouseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tmeone
 * @since 2021-04-20
 */
@Service
public class TIomWarehouseServiceImpl extends ServiceImpl<TIomWarehouseMapper, TIomWarehouse> implements ITIomWarehouseService {

    @Autowired
    private TIomWarehouseMapper iomWarehouseMapper;

    //分页
    @Override
    public IPage<TIomWarehouse> pageCheck(IPage<TIomWarehouse> page) {
        return iomWarehouseMapper.pageCheck(page);
    }

    @Override
    public List<TIomWarehouse> selectById(String id) {
        return iomWarehouseMapper.selectById(id);
    }

    @Override
    public List<TIomWarehouse> getOne(String ioNo, String WName, String pname) {
        return iomWarehouseMapper.getOne(ioNo,WName,pname);
    }
}
